package com.mygame.common.bytebuddy;

import net.bytebuddy.ByteBuddy;
import net.bytebuddy.implementation.FixedValue;
import net.bytebuddy.matcher.ElementMatchers;

public class Service {
    public static void main(String[] args) throws Exception{
        ByteBuddyProxy proxy = new ByteBuddyProxy(new Student("张三"));
        Student student = (Student) proxy.getProxy();
        student.setName("xxx");
        student.delete();



    }
}
